﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_Nice_ucSanPhamCungLoai : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            this.CollectionPager1.DataSource = this.SqlDataSource1.Select(DataSourceSelectArguments.Empty);
            this.CollectionPager1.BindToControl = this.DataList1;
            DataList1.DataSource = this.CollectionPager1.DataSourcePaged;
            this.DataList1.DataBind();
            if (DataList1.Items.Count <= 0)
            {
                this.Label3.Text = "Không có sản phẩm nào";
            }
            else
            {
                this.Label3.Text = "";
            }
        }
        catch
        {
        }
    }
}